home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickTime / Programming Stuff / Documentation / develop articles / develop Issue 24 / Printing Compressed Images / LaserWriter 8.3.1d1 prerelease / README - LaserWriter 8.3.1d1 < prev   
Encoding:
Text File  |  1995-08-23  |  4.6 KB  |  115 lines  |  [TEXT/MPCC]

  1. This folder contains a pre-release version of LaserWriter 8.3.1 which may be useful during
  2. your development of printing JPEG compressed images as described in the develop article. 
  3. The 8.3.1d1 driver is the same as the release LaserWriter 8.3 except that it allows printing 
  4. of compressed data to non-Apple brand PostScript Level 2 printers as well as printing to disk.
  5.  
  6. If you aren't sure whether you are successful in printing compressed data then you can
  7. usually print to disk and compare the sizes of the resulting PostScript output files. First,
  8. print to disk with the "Level 1 Compatible" radio button selected in the standard file
  9. dialog. This will always be uncompressed data since PostScript Level 1 printers do not
  10. support any data compression.
  11.  
  12. Next, print to disk with the "Level 2 Only" radio button selected in the standard
  13. file dialog. This will allow the file to contain compressed JPEG data if your application
  14. is working properly. If you are using JPEG compression, there should be a significant 
  15. difference in the file sizes between the two cases.
  16.  
  17. A way to be sure is to look at the PostScript code in the resulting PostScript files.
  18. If you've chosen "Level 2 Only" with the "Binary" option, then the output from PrintJPEG 
  19. should look something like:
  20.  
  21. ...
  22. %%EndPageSetup
  23. gS 0 0 552 730 rC
  24. 540 771 8 46210 [540 0 0 771 0 0] F F 5 :f
  25.                                       ^
  26.                                       |                                      
  27.                                       |                                      
  28.                   5 indicates binary JPEG compressed data    
  29.                   
  30. ---------
  31.  
  32.  
  33. If you chose "Level 2 Only" with the "ASCII" option, then the output from PrintJPEG 
  34. should look something like:
  35.  
  36. ...
  37. %%EndPageSetup
  38. gS 0 0 552 730 rC
  39. 540 771 8 46210 [540 0 0 771 0 0] F F 6 :f
  40.                                       ^
  41.                                       |                                      
  42.                                       |                                      
  43.      6 indicates ASCII85 encoded JPEG compressed data            
  44.  
  45. ---------
  46.  
  47. If you chose "Level 2 Only" with the "Binary" option, and the output from PrintJPEG
  48. looks something like:    
  49.  
  50. ...
  51. %%EndPageSetup
  52. gS 0 0 552 730 rC
  53. 540 771 8 46210 [540 0 0 771 0 0] F F 2 :f
  54.                                       ^
  55.                                       |                                      
  56.                                       |                                      
  57.       2 indicates binary PackBits compressed data
  58.       
  59. then you are not printing JPEG compressed data. For some reason, the JPEG data is
  60. being decompressed on the host and passed to the driver's custom bitsProc bottleneck
  61. where it is compressed using PackBits compression for Level 2 output devices. One
  62. typical cause of this is that you are using the wrong driver. Any version of 
  63. LaserWriter 8 prior to version 8.3.1d1 will generate this output when you are printing
  64. to file.
  65.             
  66. ---------
  67.  
  68. If you chose "Level 2 Only" with the "ASCII" option, and the output from PrintJPEG
  69. something like:    
  70.  
  71. ...
  72. %%EndPageSetup
  73. gS 0 0 552 730 rC
  74. 540 771 8 46210 [540 0 0 771 0 0] F F 3 :f
  75.                                       ^
  76.                                       |                                      
  77.                                       |                                      
  78.       3 indicates ASCII85 encoded binary PackBits compressed data            
  79.  
  80. then you are not printing JPEG compressed data. For some reason, the JPEG data is
  81. being decompressed on the host and passed to the driver's custom bitsProc bottleneck
  82. where it is compressed using PackBits compression for Level 2 output devices. One
  83. typical cause of this is that you are using the wrong driver. Any version of 
  84. LaserWriter 8 prior to version 8.3.1d1 will generate this output when you are printing
  85. to file.
  86.             
  87. ---------
  88.  
  89. If you chose "Level 1 Compatible" with the "Binary" option, then the output from PrintJPEG
  90. should look something like:
  91.  
  92. ...
  93. %%EndPageSetup
  94. gS 0 0 552 730 rC
  95. 540 771 8 46210 [540 0 0 771 0 0] F F 0 :f
  96.                                       ^
  97.                                       |                                      
  98.                                       |                                      
  99.       0 indicates binary uncompressed data            
  100.  
  101.  
  102. ---------
  103.  
  104. If you chose "Level 1 Compatible" with the "ASCII" option, then the output from PrintJPEG
  105. should look something like:
  106.  
  107. ...
  108. %%EndPageSetup
  109. gS 0 0 552 730 rC
  110. 540 771 8 46210 [540 0 0 771 0 0] F F 1 :f
  111.                                       ^
  112.                                       |                                      
  113.                                       |                                      
  114.       1 indicates hex encoded uncompressed data            
  115.